<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php

header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=page_penjualan_omset_unit.xls");
header("Pragma: no-cache");
header("Expires: 0");

?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Laporan Omset All Unit</title>
</head>

<body>
<h1>LAPORAN OMSET ALL UNIT</h1>
<h2>Total Penjualan Bulan ke <?php echo $bulan1;?> - <?php echo $bulan2;?> </h2>
<table>
	<tr>
    	<th>No.</th>
    	<th>Nama Unit</th>
    	<th>Nama Manager</th>
    	<th>Total <?php echo $strnama_jpenjualan;?></th>
    </tr>
    <?php 
		$no = 1;
		foreach($query as $row){
			echo "<tr>";
			echo "<td>".$no++."</td>";
			echo "<td>".$row->strnama_unit."</td>";
			echo "<td>".$row->nama_manager."</td>";
			echo "<td>".$row->total_penjualan."</td>";
			echo "</tr>";
			}
	?>
</table>
</body>
</html>